<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@ include file="/WEB-INF/jspf/jsDefault.jspf" %>
<f:view>
    <html>
        <head>
            <%@ include file="/WEB-INF/jspf/header.jspf" %>
        </head>
        <body>
            <%@ include file="/WEB-INF/jspf/controlloAmministratore.jspf" %>
            <div id="main">
                <header>
                    <div id="logo">
                        <%@ include file="/WEB-INF/jspf/logoContent.jspf" %>
                    </div>
                    <nav id="barraMenu">
                        <div id="menu_container">
                            <ul class="sf-menu" id="nav">
                                <h:form>
                                    <%@ include file="/WEB-INF/jspf/menu/admin.jspf" %>
                                </h:form>
                            </ul>
                        </div>
                    </nav>
                </header>
                <div id="site_content">
                    <div id="sidebar_container">
                        <%@ include file="/WEB-INF/jspf/loggedForm.jspf" %>
                    </div>
                    <div class="content" style="text-align: center">
                        <div id="accordion" class="ui-accordion ui-widget ui-helper-reset" role="tablist">
                            <h3 class="ui-accordion-header ui-helper-reset ui-state-default ui-accordion-header-active ui-state-active ui-corner-top ui-accordion-icons" role="tab" id="ui-accordion-accordion-header-0" aria-controls="ui-accordion-accordion-panel-0" aria-selected="true" aria-expanded="true" tabindex="0">
                                Modifica Responsabile
                            </h3>
                            <div class="ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active" id="ui-accordion-accordion-panel-0" aria-labelledby="ui-accordion-accordion-header-0" role="tabpanel" aria-hidden="false" style="display:compact; ">
                                <h:form>
                                    <h:outputText value="#{AdminBean.message2}" />
                                    <h:message for="nome" />
                                    <h:message for="cognome" />
                                    <h:message for="fiscale" />
                                    <h:message for="via" />
                                    <h:message for="cap" />
                                    <h:message for="citta" />
                                    <h:message for="provincia" />
                                    <h:message for="telefono" />
                                    <h:message for="cell" />
                                    <h:message for="email" />
                                    <h:outputText value="#{AdminBean.message}" />
                                    <table style="text-align: center">
                                        <tr>
                                            <td class="tdText">Seleziona il responsabile da modificare:</td>
                                            <td>
                                                <h:selectOneMenu id="tutor" value="#{AdminBean.idResponsabile}" >
                                                    <f:selectItems value="#{AdminBean.listaResponsabili}" />
                                                </h:selectOneMenu>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="tdText">Nome:</td>
                                            <td>
                                                <h:inputText id="nome" value="#{AdminBean.nome}">
                                                    <f:validator validatorId="nomeValidator" />
                                                </h:inputText>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="tdText">Cognome:</td>
                                            <td>
                                                <h:inputText id="cognome" value="#{AdminBean.cognome}">
                                                </h:inputText>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="tdText">Codice Fiscale:</td>
                                            <td>
                                                <h:inputText id="fiscale" value="#{AdminBean.codiceFiscale}" >
                                                </h:inputText>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="tdText">Provincia:</td>
                                            <td>
                                                <h:selectOneMenu id="provincia" value="#{AdminBean.provincia}" >
                                                    <f:selectItems value="#{BeanProvince.listaProvince}" />
                                                </h:selectOneMenu>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="tdText">Città:</td>
                                            <td>
                                                <h:inputText id="citta" value="#{AdminBean.citta}" >
                                                </h:inputText>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="tdText">Via:</td>
                                            <td>
                                                <h:inputText id="via" value="#{AdminBean.via}" >
                                                </h:inputText>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="tdText">Cap:</td>
                                            <td>
                                                <h:inputText id="cap" value="#{AdminBean.cap}" >
                                                </h:inputText>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="tdText">Telefono:</td>
                                            <td>
                                                <h:inputText id="Telefono" value="#{AdminBean.telefono}" >
                                                </h:inputText>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="tdText">Cell: </td>
                                            <td>
                                                <h:inputText id="cell" value="#{AdminBean.cel}" >
                                                </h:inputText>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="tdText">e-mail:</td>
                                            <td>
                                                <h:inputText id="email" value="#{AdminBean.email}" >
                                                </h:inputText>
                                            </td>
                                        </tr>
                                    </table>
                                    <table align="right">
                                        <td>
                                            <h:commandButton value="Modifica" action="#{AdminBean.modifica}" styleClass="ui-button ui-widget ui-state-default"/>
                                        </td>
                                    </h:form>
                                    <td>
                                        <h:form>
                                            <h:commandButton value="Annulla" type="submit" action="AdminUtility.jsp" styleClass="ui-button ui-widget ui-state-default"/>
                                        </h:form>
                                    </td>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                <footer>
                    <p>Copyright &copy; FF-RL 2014</p>
                </footer>
            </div>
            <p>&nbsp;</p>
            <%@ include file="/WEB-INF/jspf/menu/scriptAnimazioneMenu.jspf" %>
            <%@ include file="/WEB-INF/jspf/about/contatti.jspf" %>
        </body>
    </html>
</f:view>